<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="myTags" tagdir="/WEB-INF/tags/components" %>

<!-- Author: Minh-Tuan Ta -->

<h2>Photos</h2>

<c:if test="${isOwner == true || isFriend == true }">
	<c:if test="${isOwner == true }">
		<div>
			<a href="UploadPhoto?albumID=${album.contentID }">UploadPhoto</a>
		</div>
	</c:if>
	<c:forEach var="photo" items="${album.photos}">
		<myTags:FullPhoto photo="${photo }"></myTags:FullPhoto>
	</c:forEach>
</c:if>
<c:if test="${isOwner == false && isFriend == false }">
	You don't have permission to see user's album
</c:if>